var sendEmail = require('./sendEmail.js')

function sendAuthCode (addr) {
  var randomNumber = String(Math.random()).slice(2,6)
  var content = '您的验证码是 ' + randomNumber + ' 。 请勿回复此邮件'
  sendEmail(addr, '验证码', content)
  return randomNumber
}

module.exports = sendAuthCode